Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DDW-376] Fix address validation on the Shelley QA and Staging networks #2218

Merged

Conversation

DeeJayElly
Copy link
Contributor

@DeeJayElly DeeJayElly commented Oct 27, 2020

This PR fixes Address validation on Shelley QA and Staging networks and adds Shelley QA network SMASH server URL.

Todos

  • Fix Shelley QA network address validation
  • Check Staging network address validation (@DeeJayElly)
  • Add Shelley QA SMASH server URL

Screenshots

Screen Shot 2020-10-27 at 6 16 28 PM

Screen Shot 2020-10-27 at 6 16 00 PM


Testing Checklist


Review Checklist

Basics

  • PR has been assigned and has appropriate labels (feature/bug/chore, release-x.x.x)
  • PR is updated to the most recent version of the target branch (and there are no conflicts)
  • PR has a good description that summarizes all changes
  • PR has default-sized Daedalus window screenshots or animated GIFs of important UI changes:
    • In English
    • In Japanese
  • CHANGELOG entry has been added to the top of the appropriate section (Features, Fixes, Chores) and is linked to the correct PR on GitHub
  • Automated tests: All acceptance and unit tests are passing (yarn test)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in development build (yarn dev)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in production build (yarn package / CI builds)
  • There are no flow errors or warnings (yarn flow:test)
  • There are no lint errors or warnings (yarn lint)
  • There are no prettier errors or warnings (yarn prettier:check)
  • There are no missing translations (running yarn manage:translations produces no changes)
  • Text changes are proofread and approved (Jane Wild / Amy Reeve)
  • Japanese text changes are proofread and approved (Junko Oda)
  • UI changes look good in all themes (Alexander Rukin)
  • Storybook works and no stories are broken (yarn storybook)
  • In case of dependency changes yarn.lock file is updated

Code Quality

  • Important parts of the code are properly commented and documented
  • Code is properly typed with flow
  • React components are split-up enough to avoid unnecessary re-renderings
  • Any code that only works in main process is neatly separated from components

Testing

  • New feature/change is covered by acceptance tests
  • New feature/change is manually tested and approved by QA team
  • All existing acceptance tests are still up-to-date
  • New feature/change is covered by Daedalus Testing scenario
  • All existing Daedalus Testing scenarios are still up-to-date

After Review

  • Merge the PR
  • Delete the source branch
  • Move the ticket to done column on the YouTrack board
  • Update Slack QA thread by marking it with a green checkmark

DeeJayElly and others added 30 commits September 28, 2020 14:46
…on-wallet-dropdown' into chore/ddw-373-syncing-animation-on-wallet-dropdown

# Conflicts:
#	CHANGELOG.md
…on-wallet-dropdown' into chore/ddw-373-syncing-animation-on-wallet-dropdown
…on-on-shelley-qa-network' into fix/ddw-376-fix-address-validation-on-shelley-qa-network
Copy link

@miorsufianiohk miorsufianiohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Good work @DeeJayElly 👍

@gabriela-ponce
Copy link

@DeeJayElly this is working well. I was wondering if the same issue with Staging is going to be addressed on this PR too.
@alan-mcnicholas mentioned it happens there as well.

@nikolaglumac
Copy link
Contributor

@DeeJayElly this is working well. I was wondering if the same issue with Staging is going to be addressed on this PR too.
@alan-mcnicholas mentioned it happens there as well.

@DeeJayElly please check this 🙏

@nikolaglumac nikolaglumac changed the title [DDW-376] Fix address validation on shelley qa network [DDW-376] Fix address validation on the Shelley QA network Oct 29, 2020
@nikolaglumac
Copy link
Contributor

@DeeJayElly I have added one more TODO for you:
Screenshot 2020-10-29 at 10 46 34

cc @alan-mcnicholas

@DeeJayElly
Copy link
Contributor Author

@DeeJayElly I have added one more TODO for you:
Screenshot 2020-10-29 at 10 46 34

cc @alan-mcnicholas

Fix is added for network tag

@DeeJayElly DeeJayElly removed the WIP label Oct 29, 2020
@nikolaglumac nikolaglumac changed the title [DDW-376] Fix address validation on the Shelley QA network [DDW-376] Fix address validation on the Shelley QA and Staging networks Oct 29, 2020
@alan-mcnicholas
Copy link

Address validation is now working on staging, great work @DeeJayElly ! :)

@nikolaglumac
Copy link
Contributor

Address validation is now working on staging, great work @DeeJayElly ! :)

Thanks @alan-mcnicholas! Did you also make sure non-staging addresses are rejected? E.g. the mainnet ones?

cc @gnpf @ManusMcCole @mioriohk

@alan-mcnicholas
Copy link

@nikolaglumac I checked that address discrimination is working between staging\mainnet and testnet.
Valid addresses for both are accepted and invalid ones are rejected as expected due to incompatible networkMagic.

@nikolaglumac
Copy link
Contributor

@nikolaglumac I checked that address discrimination is working between staging\mainnet and testnet.
Valid addresses for both are accepted and invalid ones are rejected as expected due to incompatible networkMagic.

Great! Thanks for checking that @alan-mcnicholas ❤️
Can you please approve the PR?

Copy link

@alan-mcnicholas alan-mcnicholas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, great work!

Copy link
Contributor

@nikolaglumac nikolaglumac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great @DeeJayElly 👍

@nikolaglumac nikolaglumac merged commit 268ec01 into develop Oct 29, 2020
@iohk-bors iohk-bors bot deleted the fix/ddw-376-fix-address-validation-on-shelley-qa-network branch October 29, 2020 14:10
@nikolaglumac nikolaglumac added release-2.4.1-FC1 Daedalus Flight and removed ⏳release-vNext labels Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants